class Solution {
public:
    vector<int> numberGame(vector<int>& nums)
    {
        vector<int> ans;
        int n = nums.size();
        priority_queue<int, vector<int>, greater<int>> pq;
        for (auto& a : nums)
            pq.push(a);
        while (!pq.empty())
        {
            int alice = pq.top();
            pq.pop();
            int bob = pq.top();
            pq.pop();
            ans.push_back(bob);
            ans.push_back(alice);
        }
        return ans;
    }
};//